home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Startmenu Options.xpl < prev    next >
Text File  |  1999-08-24  |  2KB  |  70 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Appearance\Start menu\Options"
  5. "NAME"="Display Options"
  6. "VERSION"="1.15"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show context menu for "Start" button,Taskbar and Tray"
  9. "TEXT 2"="Show context menu (right-click) in Start->Programs"
  10. "TEXT 3"="Show Start->Programs using multiple columns" 
  11. "DESCRIPTION 1"="If an item is disabled (not checked), Windows will either not display it or does not allow that changes are made."
  12. "DESCRIPTION 2"=""
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  16. "COMMENT 2"="Setting #3 from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!"
  17.  
  18.  
  19.  
  20.   sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  21.  sV1="NoTrayContextMenu"
  22.  sV2="NoChangeStartMenu"
  23. sPV3="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" 'STR: false/true
  24. SUB Plugin_Initialize
  25.  
  26.  i=RegReadValue(sp&sV1) 
  27.  If IsEmpty(i) or i=0 then SetUIElement 1,true
  28.  
  29.  i=RegReadValue(sp&sV2) 
  30.  if IsEmpty(i) or i=0 then SetUIElement 2,true 
  31.  
  32.  i=RegReadValue(sPV3) 
  33.  if i="false" then SetUIElement 3,true 
  34.  
  35. END SUB
  36.  
  37. SUB Plugin_CheckData(ElementIndex)
  38. END SUB
  39.  
  40. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  
  42.  b=GetUIElement(1)
  43.  if b=true then
  44.     Call RegWriteValue(sp&sV1,0,2)
  45.  else
  46.     Call RegWriteValue(sp&sV1,1,2)
  47.  end if
  48.  
  49.  b=GetUIElement(2)
  50.  if b=true then
  51.     Call RegWriteValue(sp&sV2,0,2)
  52.  else
  53.     Call RegWriteValue(sp&sV2,1,2)
  54.  end if
  55.  
  56.  b=GetUIElement(3)
  57.  if b=true then
  58.     Call RegWriteValue(sPV3,"false",1)
  59.  else
  60.     Call RegWriteValue(sPV3,"true",1)
  61.  end if
  62.  
  63.  
  64.  Call Logoff
  65.  
  66. END SUB
  67.  
  68. SUB Plugin_Terminate
  69. END SUB
  70.